package com.vcc.service.impl;

import com.mybatisflex.core.service.IService;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.vcc.data.entity.EnterpriseBeneficiary;
import com.vcc.data.mapper.EnterpriseBeneficiaryMapper;
import com.vcc.service.service.EnterpriseBeneficiaryService;
import org.springframework.stereotype.Service;


@Service
public class EnterpriseBeneficiaryServiceImpl extends ServiceImpl<EnterpriseBeneficiaryMapper,EnterpriseBeneficiary> implements EnterpriseBeneficiaryService {
    @Override
    public Boolean removeByEnterpriseCertInfoId(Long enterpriseCertInfoId) {
        return remove(queryChain().eq(EnterpriseBeneficiary::getEnterpriseCertInfoId, enterpriseCertInfoId));
    }
}
